<g:form name="entry" url="[controller:'test', action:'index']" method="get">
  Blog URL: <g:textField name="blogUrl" size="80" value="${params.blogUrl}"/>
  <input type='submit' name='method' value='Fetch Blog'/>  
</g:form>
<g:form name="fetch" url="[controller:'test', action:'parseEntry']" method="get">
  Entry URL: <g:textField name="link" size="80" value="${params.blogUrl}"/>
  <input type='submit' name='method' value='Fetch Entry'/>
</g:form>
<g:if test="${url != null}">
  <table>
    <tr>
      <td>
	url = ${url}
      </td>
    </tr>
    <g:if test="${result != null}">
    <tr>
      <td>
	title = ${result.title}
      </td>
    </tr>
    <g:if test="${result.content != null}">
    <tr>
      <td>
        charset = ${result.content.headers.charset}
      </td>
    </tr>
    <tr>
      <td>
	feeds:
	<ul>
          <g:if test="${result.feeds != null}">
	  <% result.feeds.each { link -> %>
	  <li>${link.'@type'} : ${link.'@href'}
		<g:link action="parseFeed" params="[link:link.'@href', type:link.'@type']">parse</g:link>
          </li>
	  <% } %>
          </g:if>
	</ul>
      </td>
    </tr>
    </g:if>
    </g:if>
  </table>
</g:if>
<g:else>
     Please specify url.
</g:else>